import { VXETable } from 'vxe-table';

enum VxeNotifyType {
  info,
  warning,
  question,
  success,
  error,
  loading
}

// 提示组件
function VxeMessage(content: any, status: VxeNotifyType) {
  if (content) {
    VXETable.modal.message({ content: content, status: VxeNotifyType[status] });
  }
}

// 提示组件
function VxeMessageMax(content: any, status: VxeNotifyType) {
  if (content) {    
    VXETable.modal.message({ 
      content: content, 
      status: VxeNotifyType[status],
      width:400,
      height:40,
      className:'vxe-message-maxBox'
    });
  }
}
export { VxeMessage,VxeMessageMax, VxeNotifyType };
